package j.util.jdbc.simple.core;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public abstract class SimpleJdbcAbstract {

	protected static Log log = LogFactory.getLog(SimpleJdbcAbstract.class);

	protected <T> SQLData getSqlData(Class<T> clazz){
		SQLData data = SimpleJdbcContext.getSQLData(clazz);
		if(null == data){
			throw new RuntimeException("entity "+clazz.getName()+" doens't found its' metadata.");
		}
		return data;
	}
}
